﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SCRS.Model;

/// <summary>
/// 会员充值记录
/// </summary>
[Table("SYS_VIP_PAY_RECORD")]
public class VipPayRecord
{
    // 充值记录ID,会员卡号,充值金额,充值时间,操作员
    /// <summary>
    /// 充值记录ID
    /// </summary>
    [Key]
    [Column("ID")]
    public Guid Id { get; set; } = Guid.NewGuid();

    /// <summary>
    /// 会员卡号
    /// </summary>
    [Column("VIP_CARD_ID")]
    public string VipCardId { get; set; }

    /// <summary>
    /// 充值金额
    /// </summary>
    [Column("PAY_AMOUNT")]
    public decimal PayAmount { get; set; }

    /// <summary>
    /// 充值时间
    /// </summary>
    [Column("PAY_TIME")]
    public DateTime PayTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 操作员
    /// </summary>
    [Column("OPERATOR")]
    public int Operator { get; set; }
}